﻿{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">出库质量管理 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well" method='post' id="form1" name="form1" action="__URL__/update/">
<table cellpadding=3 cellspacing=3 >
<tr>
    <td>销售分单号</td><td><a href="__APP__/Order_detail/edit/id/{$vo.id}"> {$vo.mano} </a> ---{$vo.status|getConfigVal='orderDetailStatus'} </td>
</tr>

  <tr>
    <td>产品</td>
    <td>{$vo.product_id|getPfullName}<img src="__PUBLIC__/Uploads/product/{$vo.product_id|getCas}.jpg"></td>
  </tr>

<tr>
     <td>数量</td><td>
     {$vo.number}{$vo.unit_id|getModelName='Unit'} </td>
 </tr>
 <tr>
     <td>总货值</td><td>{$vo.total}
     </td>
 </tr>
 

<tr>
    <td>出库质量管理</td>
    <td>{:configList(C('qcstatus'),$vo['qc_status'],'qc_status')}</td>
</tr>
<tr>
 <td>质检指南</td>
 <td> <textarea rows="4" class="span11" name="qc_guide">{$vo.qc_guide}</textarea> </td>
</tr>
<tr>
    <td>客户投诉</td>
     <td> <textarea rows="4" class="span11" name="complaint">{$vo.complaint}</textarea> 
     </td>
  </tr>
  <tr>
    <td>处理记录</td>
     <td> <textarea rows="4" class="span11" name="resolve">{$vo.resolve}</textarea> 
     </td>
  </tr>
<tr>
	<td></td>
	<td class="center" width="300">
        <input type="hidden" value="{$vo.id}" name="id">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
</form>

<form class="form-horizontal well" method='post' id="form1" name="form1" action="__URL__/update/">
  
  <tr>
    <td>投诉时间：</td><td>{$vo.complaint_time|toDate}</td>
  </tr>
  <tr>
  <td></td>
  <td class="center" width="300">
        <input type="hidden" value="{$vo.id}" name="id">
        <input type="hidden" value="{:time()}" name="complaint_time">
        <input type="hidden" name="qc_status" value="10">
        <button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 客户投诉</button>
  </td>
</tr>
</form>

<tr> <td colspan="2">----</td> </tr>
<!--
<form action="__URL__/update" method="post">
<tr>
    <td>争议订单处理</td>
    <td>
        <input type="hidden" value="{$vo.id}" name="id">
    <select name="status">
   	<option value="-4">争议订单</option> 
   	<option value="-5">争议处理中</option> 
   	<option value="-6">争议回复</option> 
   	<option value="-7">争议结束</option> 
   </select>
   
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 提交</button>
    </td>
</tr>
</form>
-->
</table>

<notempty name="vo.id">
<?php 
$msgs = M('Message')->where('obj_type="Order_detail" and obj_id ='.$vo['id'])->order('create_time desc')->findAll();
        
 ?>
<table class="table table-bordered">
  <tr class="alert alert-info"><td colspan=5>订单备注</td>
    <td><a class="btn btn-primary" href="__APP__/Message/add/obj_type/Order_detail/depart/质量管理/obj_id/{$vo.id}/return_type/Qc/return_id/{$vo.id}"><i class="icon-comment icon-white"></i> 创建备注</a></td> 
  </tr>
  <tr> <td>编号</td><td>部门</td><td>留言</td><td>操作人</td>  <td>日期</td><td>修改</td> </tr>
  <!--order by create time desc-->
  <volist name="msgs" id="msg">
    <eq name="_SESSION[C('USER_AUTH_KEY')]" value="$msg.user_id"> 
      <form action="__APP__/Message/update" method="post" id="msg"
      <tr>
        <td> <input type="hidden" name="id" value="{$msg.id}">
          <input type="hidden" name="jumpUrl" value="__SELF__">
          {$msg.id}</td>
        <td>{$msg.depart}</td>
        <td><textarea name="content" class="input-xxlarge" rows="4">{$msg.content}</textarea> </td>
        <td>{$msg.user_id|getModelName='User'}</td>
        <td>{$msg.create_time|toDate}</td>
        <td> <input type="submit" class="btn btn-primary" value="修改"> </td>
      </tr>
      </form>
    <else/>
    <tr>
      <td>{$msg.id}</td>
      <td>{$msg.depart}</td>
      <td>{$msg.content}</td>
      <td>{$msg.user_id|getModelName='User'}</td>
      <td>{$msg.create_time|toDate}</td>
      <td> ---</td>
    </tr>
  </eq>
  </volist>
</table>
</notempty>

</div>
</div>
<include file="Public:footer" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/easyui/themes/default/easyui.css">
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/filter-product.js"></script>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
